<?php 
$n="1000";
$m="10000";
$flower=$n;
foreach ($n as $key => $m) {
	if ($flower%3=$m && $flower%5=$n){
		if ($n!=$m) {
			echo "水仙花数={$flower}";
		}
		else
		{
			echo "计算错误";
		}
	}
}

 ?>